package com.jzy.stock.stockRoom.mapper;

import com.jzy.stock.stockRoom.model.IdentifySelectVo;
import com.jzy.stock.stockRoom.model.StockRoomIdentifyVo;
import com.jzy.stock.stockRoom.model.StockRoomSelectVo;
import com.jzy.stock.stockRoom.model.StockRoomVo;
import org.apache.ibatis.annotations.Mapper;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author 贾志宇
 * @create 2022-07-11-17:18
 */
@Mapper
public interface StockMapper {
    List<StockRoomIdentifyVo> queryPage(@Valid IdentifySelectVo identifySelectVo);

    int queryCount(@Valid IdentifySelectVo identifySelectVo);

    StockRoomIdentifyVo quaryById(@NotNull(message = "修改的数据id不能为空") Integer id);

    void updateStatus(StockRoomIdentifyVo stockRoomIdentifyVo);

    StockRoomIdentifyVo quaryByName(@NotBlank(message = "库房名称不能为空") String name);

    StockRoomIdentifyVo quaryByCode(@NotBlank(message = "库房名称不能为空") String name);

    void add(StockRoomIdentifyVo stockRoomIdentifyVo2);

    void update(StockRoomIdentifyVo stockRoomIdentifyVo2);

    List<StockRoomVo> queryPage1(@Valid StockRoomSelectVo stockRoomSelectVo);

    int queryCount1(@Valid StockRoomSelectVo stockRoomSelectVo);

    StockRoomVo quaryById1(@NotNull(message = "修改的数据id不能为空") Integer id);

    void updateStatus1(StockRoomVo stockRoomVo);

    List<StockRoomIdentifyVo> queryWarehouseTagList();

    StockRoomVo quaryByName1(@NotBlank(message = "库房名称不能为空") String name);

    StockRoomVo quaryByCode1(@NotBlank(message = "库房编码不能为空") String code);

    void add1(StockRoomVo stockRoomVo2);

    void update1(StockRoomVo stockRoomVo2);
}
